#ifndef SCT_RTSPSERVER_TSSTREAMSOURCE_H
#define SCT_RTSPSERVER_TSSTREAMSOURCE_H

#include "sct/core/common.h"
#include "sct/rtspserver/serverinterface.h"
#include "sct/rtspserver/streamsource.h"

namespace sct
{
class CTsStreamSource: public CStreamSource
{
public:
	CTsStreamSource(CServerInterface* server);
	virtual ~CTsStreamSource();

protected:
	virtual void onPutData(const void*p, const int len, const int64_t pts);

private:
	int mCnt;
	uint8_t * mBuffer;
	uint64_t mPts;
};
}
#endif
